<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::OptimizationTrainer&lt; Model, LabelTypeT &gt; Class Template Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="classshark_1_1_optimization_trainer.html">OptimizationTrainer</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="classshark_1_1_optimization_trainer-members.html">List of all members</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle"><div class="title">shark::OptimizationTrainer&lt; Model, LabelTypeT &gt; Class Template Reference<div class="ingroups"><a class="el" href="group__supervised__trainer.html">Supervised Trainers</a></div></div></div>
</div><!--header-->
<div class="contents">

<p>Wrapper for training schemes based on (iterative) optimization.  
 <a href="classshark_1_1_optimization_trainer.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_optimization_trainer_8h_source.html">shark/Algorithms/Trainers/OptimizationTrainer.h</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for shark::OptimizationTrainer&lt; Model, LabelTypeT &gt;:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classshark_1_1_optimization_trainer__inherit__graph.png" border="0" usemap="#ashark_1_1_optimization_trainer_3_01_model_00_01_label_type_t_01_4_inherit__map" alt="Inheritance graph"/></div>
<map name="ashark_1_1_optimization_trainer_3_01_model_00_01_label_type_t_01_4_inherit__map" id="ashark_1_1_optimization_trainer_3_01_model_00_01_label_type_t_01_4_inherit__map">
<area shape="rect" title="Wrapper for training schemes based on (iterative) optimization." alt="" coords="5,94,180,135"/>
<area shape="rect" href="classshark_1_1_abstract_trainer.html" title="Superclass of supervised learning algorithms." alt="" coords="15,5,170,46"/>
<area shape="poly" title=" " alt="" coords="95,62,95,94,90,94,90,62"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a6ea1a0177091d87e96112be41b016ed9" id="r_a6ea1a0177091d87e96112be41b016ed9"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_abstract_trainer.html#a0cfa7cdd27b8bb162e64188095f8fa71">base_type::InputType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_optimization_trainer.html#a6ea1a0177091d87e96112be41b016ed9">InputType</a></td></tr>
<tr class="separator:a6ea1a0177091d87e96112be41b016ed9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad218bce769adeb0abf043b914693b570" id="r_ad218bce769adeb0abf043b914693b570"><td class="memItemLeft" align="right" valign="top">typedef Model::OutputType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_optimization_trainer.html#ad218bce769adeb0abf043b914693b570">OutputType</a></td></tr>
<tr class="separator:ad218bce769adeb0abf043b914693b570"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a16bba2cc3995eb25d31c0c5c270892d6" id="r_a16bba2cc3995eb25d31c0c5c270892d6"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_abstract_trainer.html#aa4e344106831fb8227c2120681588ea9">base_type::LabelType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_optimization_trainer.html#a16bba2cc3995eb25d31c0c5c270892d6">LabelType</a></td></tr>
<tr class="separator:a16bba2cc3995eb25d31c0c5c270892d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49f97f789b60936b63516cfcba72cab8" id="r_a49f97f789b60936b63516cfcba72cab8"><td class="memItemLeft" align="right" valign="top">typedef Model&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_optimization_trainer.html#a49f97f789b60936b63516cfcba72cab8">ModelType</a></td></tr>
<tr class="separator:a49f97f789b60936b63516cfcba72cab8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94821f625b14c0a2110f8fe1573e04b2" id="r_a94821f625b14c0a2110f8fe1573e04b2"><td class="memItemLeft" align="right" valign="top">typedef ModelType::ParameterVectorType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_optimization_trainer.html#a94821f625b14c0a2110f8fe1573e04b2">ParameterVectorType</a></td></tr>
<tr class="separator:a94821f625b14c0a2110f8fe1573e04b2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af482502de4631496926f145d630b53af" id="r_af482502de4631496926f145d630b53af"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_abstract_single_objective_optimizer.html">AbstractSingleObjectiveOptimizer</a>&lt; <a class="el" href="classshark_1_1_optimization_trainer.html#a94821f625b14c0a2110f8fe1573e04b2">ParameterVectorType</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_optimization_trainer.html#af482502de4631496926f145d630b53af">OptimizerType</a></td></tr>
<tr class="separator:af482502de4631496926f145d630b53af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea3cee91bfbb1ab192e7699239b65418" id="r_aea3cee91bfbb1ab192e7699239b65418"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_abstract_loss.html">AbstractLoss</a>&lt; <a class="el" href="classshark_1_1_optimization_trainer.html#a16bba2cc3995eb25d31c0c5c270892d6">LabelType</a>, <a class="el" href="classshark_1_1_optimization_trainer.html#ad218bce769adeb0abf043b914693b570">OutputType</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_optimization_trainer.html#aea3cee91bfbb1ab192e7699239b65418">LossType</a></td></tr>
<tr class="separator:aea3cee91bfbb1ab192e7699239b65418"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a059e6205b464fdfc50cf18f2799163" id="r_a8a059e6205b464fdfc50cf18f2799163"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_abstract_stopping_criterion.html">AbstractStoppingCriterion</a>&lt; <a class="el" href="structshark_1_1_single_objective_result_set.html">SingleObjectiveResultSet</a>&lt; <a class="el" href="classshark_1_1_optimization_trainer.html#a94821f625b14c0a2110f8fe1573e04b2">ParameterVectorType</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_optimization_trainer.html#a8a059e6205b464fdfc50cf18f2799163">StoppingCriterionType</a></td></tr>
<tr class="separator:a8a059e6205b464fdfc50cf18f2799163"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_types_classshark_1_1_abstract_trainer"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classshark_1_1_abstract_trainer')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="classshark_1_1_abstract_trainer.html">shark::AbstractTrainer&lt; Model, LabelTypeT &gt;</a></td></tr>
<tr class="memitem:a0d5c9d35b614d6a33e4e8bfeaf1e9298 inherit pub_types_classshark_1_1_abstract_trainer" id="r_a0d5c9d35b614d6a33e4e8bfeaf1e9298"><td class="memItemLeft" align="right" valign="top">typedef Model&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_trainer.html#a0d5c9d35b614d6a33e4e8bfeaf1e9298">ModelType</a></td></tr>
<tr class="separator:a0d5c9d35b614d6a33e4e8bfeaf1e9298 inherit pub_types_classshark_1_1_abstract_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0cfa7cdd27b8bb162e64188095f8fa71 inherit pub_types_classshark_1_1_abstract_trainer" id="r_a0cfa7cdd27b8bb162e64188095f8fa71"><td class="memItemLeft" align="right" valign="top">typedef ModelType::InputType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_trainer.html#a0cfa7cdd27b8bb162e64188095f8fa71">InputType</a></td></tr>
<tr class="separator:a0cfa7cdd27b8bb162e64188095f8fa71 inherit pub_types_classshark_1_1_abstract_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4e344106831fb8227c2120681588ea9 inherit pub_types_classshark_1_1_abstract_trainer" id="r_aa4e344106831fb8227c2120681588ea9"><td class="memItemLeft" align="right" valign="top">typedef LabelTypeT&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_trainer.html#aa4e344106831fb8227c2120681588ea9">LabelType</a></td></tr>
<tr class="separator:aa4e344106831fb8227c2120681588ea9 inherit pub_types_classshark_1_1_abstract_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4730fe9d59622d35d95cd4233f8d7af inherit pub_types_classshark_1_1_abstract_trainer" id="r_aa4730fe9d59622d35d95cd4233f8d7af"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="classshark_1_1_labeled_data.html">LabeledData</a>&lt; <a class="el" href="classshark_1_1_abstract_trainer.html#a0cfa7cdd27b8bb162e64188095f8fa71">InputType</a>, <a class="el" href="classshark_1_1_abstract_trainer.html#aa4e344106831fb8227c2120681588ea9">LabelType</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_trainer.html#aa4730fe9d59622d35d95cd4233f8d7af">DatasetType</a></td></tr>
<tr class="separator:aa4730fe9d59622d35d95cd4233f8d7af inherit pub_types_classshark_1_1_abstract_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a3bce482c2ef3c70bbbab4b7c034c294b" id="r_a3bce482c2ef3c70bbbab4b7c034c294b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_optimization_trainer.html#a3bce482c2ef3c70bbbab4b7c034c294b">OptimizationTrainer</a> (<a class="el" href="classshark_1_1_optimization_trainer.html#aea3cee91bfbb1ab192e7699239b65418">LossType</a> *loss, <a class="el" href="classshark_1_1_optimization_trainer.html#af482502de4631496926f145d630b53af">OptimizerType</a> *optimizer, <a class="el" href="classshark_1_1_optimization_trainer.html#a8a059e6205b464fdfc50cf18f2799163">StoppingCriterionType</a> *stoppingCriterion)</td></tr>
<tr class="separator:a3bce482c2ef3c70bbbab4b7c034c294b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a638833667d4760aa927deb182c3067bd" id="r_a638833667d4760aa927deb182c3067bd"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_optimization_trainer.html#a638833667d4760aa927deb182c3067bd">name</a> () const</td></tr>
<tr class="memdesc:a638833667d4760aa927deb182c3067bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">From <a class="el" href="classshark_1_1_i_nameable.html" title="This class is an interface for all objects which can have a name.">INameable</a>: return the class name.  <br /></td></tr>
<tr class="separator:a638833667d4760aa927deb182c3067bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3cfafba31871515074323c20d501573" id="r_ab3cfafba31871515074323c20d501573"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_optimization_trainer.html#ab3cfafba31871515074323c20d501573">train</a> (<a class="el" href="classshark_1_1_optimization_trainer.html#a49f97f789b60936b63516cfcba72cab8">ModelType</a> &amp;model, <a class="el" href="classshark_1_1_labeled_data.html">LabeledData</a>&lt; <a class="el" href="classshark_1_1_optimization_trainer.html#a6ea1a0177091d87e96112be41b016ed9">InputType</a>, <a class="el" href="classshark_1_1_optimization_trainer.html#a16bba2cc3995eb25d31c0c5c270892d6">LabelType</a> &gt; const &amp;dataset)</td></tr>
<tr class="separator:ab3cfafba31871515074323c20d501573"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad449532e71b350608c5893be63d1b3d8" id="r_ad449532e71b350608c5893be63d1b3d8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_optimization_trainer.html#ad449532e71b350608c5893be63d1b3d8">read</a> (<a class="el" href="namespaceshark.html#ada68729491840669e47c8ad42282424f">InArchive</a> &amp;archive)</td></tr>
<tr class="memdesc:ad449532e71b350608c5893be63d1b3d8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read the component from the supplied archive.  <br /></td></tr>
<tr class="separator:ad449532e71b350608c5893be63d1b3d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abdc10088c9e637d0008ec1bc52007400" id="r_abdc10088c9e637d0008ec1bc52007400"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_optimization_trainer.html#abdc10088c9e637d0008ec1bc52007400">write</a> (<a class="el" href="namespaceshark.html#af4f8eb8e9618f5236b71bbcb12b8a524">OutArchive</a> &amp;archive) const</td></tr>
<tr class="memdesc:abdc10088c9e637d0008ec1bc52007400"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write the component to the supplied archive.  <br /></td></tr>
<tr class="separator:abdc10088c9e637d0008ec1bc52007400"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_abstract_trainer"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_abstract_trainer')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_abstract_trainer.html">shark::AbstractTrainer&lt; Model, LabelTypeT &gt;</a></td></tr>
<tr class="memitem:a71d3fd2567473d746ecb733d7fa28c7e inherit pub_methods_classshark_1_1_abstract_trainer" id="r_a71d3fd2567473d746ecb733d7fa28c7e"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_abstract_trainer.html#a71d3fd2567473d746ecb733d7fa28c7e">train</a> (<a class="el" href="classshark_1_1_abstract_trainer.html#a0d5c9d35b614d6a33e4e8bfeaf1e9298">ModelType</a> &amp;model, <a class="el" href="classshark_1_1_abstract_trainer.html#aa4730fe9d59622d35d95cd4233f8d7af">DatasetType</a> const &amp;dataset)=0</td></tr>
<tr class="memdesc:a71d3fd2567473d746ecb733d7fa28c7e inherit pub_methods_classshark_1_1_abstract_trainer"><td class="mdescLeft">&#160;</td><td class="mdescRight">Core of the Trainer interface.  <br /></td></tr>
<tr class="separator:a71d3fd2567473d746ecb733d7fa28c7e inherit pub_methods_classshark_1_1_abstract_trainer"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_i_nameable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_i_nameable')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_i_nameable.html">shark::INameable</a></td></tr>
<tr class="memitem:a877dbdfc6b58ea836495143cea44a98c inherit pub_methods_classshark_1_1_i_nameable" id="r_a877dbdfc6b58ea836495143cea44a98c"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_nameable.html#a877dbdfc6b58ea836495143cea44a98c">~INameable</a> ()</td></tr>
<tr class="separator:a877dbdfc6b58ea836495143cea44a98c inherit pub_methods_classshark_1_1_i_nameable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classshark_1_1_i_serializable"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classshark_1_1_i_serializable')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classshark_1_1_i_serializable.html">shark::ISerializable</a></td></tr>
<tr class="memitem:a7baa9ce108d7278822297ce15882782a inherit pub_methods_classshark_1_1_i_serializable" id="r_a7baa9ce108d7278822297ce15882782a"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#a7baa9ce108d7278822297ce15882782a">~ISerializable</a> ()</td></tr>
<tr class="memdesc:a7baa9ce108d7278822297ce15882782a inherit pub_methods_classshark_1_1_i_serializable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Virtual d'tor.  <br /></td></tr>
<tr class="separator:a7baa9ce108d7278822297ce15882782a inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abdda0c5b8e065b8afbac2cba8f58e841 inherit pub_methods_classshark_1_1_i_serializable" id="r_abdda0c5b8e065b8afbac2cba8f58e841"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#abdda0c5b8e065b8afbac2cba8f58e841">load</a> (<a class="el" href="namespaceshark.html#ada68729491840669e47c8ad42282424f">InArchive</a> &amp;archive, unsigned int version)</td></tr>
<tr class="memdesc:abdda0c5b8e065b8afbac2cba8f58e841 inherit pub_methods_classshark_1_1_i_serializable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Versioned loading of components, calls read(...).  <br /></td></tr>
<tr class="separator:abdda0c5b8e065b8afbac2cba8f58e841 inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5bf66fa8db15cc529bec98976a2f5255 inherit pub_methods_classshark_1_1_i_serializable" id="r_a5bf66fa8db15cc529bec98976a2f5255"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#a5bf66fa8db15cc529bec98976a2f5255">save</a> (<a class="el" href="namespaceshark.html#af4f8eb8e9618f5236b71bbcb12b8a524">OutArchive</a> &amp;archive, unsigned int version) const</td></tr>
<tr class="memdesc:a5bf66fa8db15cc529bec98976a2f5255 inherit pub_methods_classshark_1_1_i_serializable"><td class="mdescLeft">&#160;</td><td class="mdescRight">Versioned storing of components, calls write(...).  <br /></td></tr>
<tr class="separator:a5bf66fa8db15cc529bec98976a2f5255 inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4560a94e8f4908fe8627e41e7d965735 inherit pub_methods_classshark_1_1_i_serializable" id="r_a4560a94e8f4908fe8627e41e7d965735"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_i_serializable.html#a4560a94e8f4908fe8627e41e7d965735">BOOST_SERIALIZATION_SPLIT_MEMBER</a> ()</td></tr>
<tr class="separator:a4560a94e8f4908fe8627e41e7d965735 inherit pub_methods_classshark_1_1_i_serializable"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-attribs" name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:afb616dd8695689cafff3d678ba36e4ef" id="r_afb616dd8695689cafff3d678ba36e4ef"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_optimization_trainer.html#aea3cee91bfbb1ab192e7699239b65418">LossType</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_optimization_trainer.html#afb616dd8695689cafff3d678ba36e4ef">mep_loss</a></td></tr>
<tr class="separator:afb616dd8695689cafff3d678ba36e4ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f460e07d0acdcd22d14833b3bf0cd16" id="r_a1f460e07d0acdcd22d14833b3bf0cd16"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_optimization_trainer.html#af482502de4631496926f145d630b53af">OptimizerType</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_optimization_trainer.html#a1f460e07d0acdcd22d14833b3bf0cd16">mep_optimizer</a></td></tr>
<tr class="separator:a1f460e07d0acdcd22d14833b3bf0cd16"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80fc3d270c449461327a702f7d9f223d" id="r_a80fc3d270c449461327a702f7d9f223d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_optimization_trainer.html#a8a059e6205b464fdfc50cf18f2799163">StoppingCriterionType</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_optimization_trainer.html#a80fc3d270c449461327a702f7d9f223d">mep_stoppingCriterion</a></td></tr>
<tr class="separator:a80fc3d270c449461327a702f7d9f223d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;class Model, class LabelTypeT = typename Model::OutputType&gt;<br />
class shark::OptimizationTrainer&lt; Model, LabelTypeT &gt;</div><p>Wrapper for training schemes based on (iterative) optimization. </p>
<dl class="section user"><dt></dt><dd>The <a class="el" href="classshark_1_1_optimization_trainer.html" title="Wrapper for training schemes based on (iterative) optimization.">OptimizationTrainer</a> class is designed to allow for model training via iterative minimization of a loss function, such as in neural network "backpropagation" training. </dd></dl>

<p class="definition">Definition at line <a class="el" href="_optimization_trainer_8h_source.html#l00058">58</a> of file <a class="el" href="_optimization_trainer_8h_source.html">OptimizationTrainer.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="a6ea1a0177091d87e96112be41b016ed9" name="a6ea1a0177091d87e96112be41b016ed9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6ea1a0177091d87e96112be41b016ed9">&#9670;&#160;</a></span>InputType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Model , class LabelTypeT  = typename Model::OutputType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classshark_1_1_abstract_trainer.html#a0cfa7cdd27b8bb162e64188095f8fa71">base_type::InputType</a> <a class="el" href="classshark_1_1_optimization_trainer.html">shark::OptimizationTrainer</a>&lt; Model, LabelTypeT &gt;<a class="el" href="_multi_task_svm_8cpp.html#a0dea9a3a85d327080d9b617903508925">::InputType</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_optimization_trainer_8h_source.html#l00063">63</a> of file <a class="el" href="_optimization_trainer_8h_source.html">OptimizationTrainer.h</a>.</p>

</div>
</div>
<a id="a16bba2cc3995eb25d31c0c5c270892d6" name="a16bba2cc3995eb25d31c0c5c270892d6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a16bba2cc3995eb25d31c0c5c270892d6">&#9670;&#160;</a></span>LabelType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Model , class LabelTypeT  = typename Model::OutputType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classshark_1_1_abstract_trainer.html#aa4e344106831fb8227c2120681588ea9">base_type::LabelType</a> <a class="el" href="classshark_1_1_optimization_trainer.html">shark::OptimizationTrainer</a>&lt; Model, LabelTypeT &gt;::LabelType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_optimization_trainer_8h_source.html#l00065">65</a> of file <a class="el" href="_optimization_trainer_8h_source.html">OptimizationTrainer.h</a>.</p>

</div>
</div>
<a id="aea3cee91bfbb1ab192e7699239b65418" name="aea3cee91bfbb1ab192e7699239b65418"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea3cee91bfbb1ab192e7699239b65418">&#9670;&#160;</a></span>LossType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Model , class LabelTypeT  = typename Model::OutputType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classshark_1_1_abstract_loss.html">AbstractLoss</a>&lt; <a class="el" href="classshark_1_1_optimization_trainer.html#a16bba2cc3995eb25d31c0c5c270892d6">LabelType</a>, <a class="el" href="classshark_1_1_optimization_trainer.html#ad218bce769adeb0abf043b914693b570">OutputType</a> &gt; <a class="el" href="classshark_1_1_optimization_trainer.html">shark::OptimizationTrainer</a>&lt; Model, LabelTypeT &gt;::LossType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_optimization_trainer_8h_source.html#l00070">70</a> of file <a class="el" href="_optimization_trainer_8h_source.html">OptimizationTrainer.h</a>.</p>

</div>
</div>
<a id="a49f97f789b60936b63516cfcba72cab8" name="a49f97f789b60936b63516cfcba72cab8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a49f97f789b60936b63516cfcba72cab8">&#9670;&#160;</a></span>ModelType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Model , class LabelTypeT  = typename Model::OutputType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef Model <a class="el" href="classshark_1_1_optimization_trainer.html">shark::OptimizationTrainer</a>&lt; Model, LabelTypeT &gt;::ModelType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_optimization_trainer_8h_source.html#l00066">66</a> of file <a class="el" href="_optimization_trainer_8h_source.html">OptimizationTrainer.h</a>.</p>

</div>
</div>
<a id="af482502de4631496926f145d630b53af" name="af482502de4631496926f145d630b53af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af482502de4631496926f145d630b53af">&#9670;&#160;</a></span>OptimizerType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Model , class LabelTypeT  = typename Model::OutputType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classshark_1_1_abstract_single_objective_optimizer.html">AbstractSingleObjectiveOptimizer</a>&lt; <a class="el" href="classshark_1_1_optimization_trainer.html#a94821f625b14c0a2110f8fe1573e04b2">ParameterVectorType</a> &gt; <a class="el" href="classshark_1_1_optimization_trainer.html">shark::OptimizationTrainer</a>&lt; Model, LabelTypeT &gt;::OptimizerType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_optimization_trainer_8h_source.html#l00069">69</a> of file <a class="el" href="_optimization_trainer_8h_source.html">OptimizationTrainer.h</a>.</p>

</div>
</div>
<a id="ad218bce769adeb0abf043b914693b570" name="ad218bce769adeb0abf043b914693b570"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad218bce769adeb0abf043b914693b570">&#9670;&#160;</a></span>OutputType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Model , class LabelTypeT  = typename Model::OutputType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef Model::OutputType <a class="el" href="classshark_1_1_optimization_trainer.html">shark::OptimizationTrainer</a>&lt; Model, LabelTypeT &gt;::OutputType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_optimization_trainer_8h_source.html#l00064">64</a> of file <a class="el" href="_optimization_trainer_8h_source.html">OptimizationTrainer.h</a>.</p>

</div>
</div>
<a id="a94821f625b14c0a2110f8fe1573e04b2" name="a94821f625b14c0a2110f8fe1573e04b2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a94821f625b14c0a2110f8fe1573e04b2">&#9670;&#160;</a></span>ParameterVectorType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Model , class LabelTypeT  = typename Model::OutputType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef ModelType::ParameterVectorType <a class="el" href="classshark_1_1_optimization_trainer.html">shark::OptimizationTrainer</a>&lt; Model, LabelTypeT &gt;::ParameterVectorType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_optimization_trainer_8h_source.html#l00067">67</a> of file <a class="el" href="_optimization_trainer_8h_source.html">OptimizationTrainer.h</a>.</p>

</div>
</div>
<a id="a8a059e6205b464fdfc50cf18f2799163" name="a8a059e6205b464fdfc50cf18f2799163"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8a059e6205b464fdfc50cf18f2799163">&#9670;&#160;</a></span>StoppingCriterionType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Model , class LabelTypeT  = typename Model::OutputType&gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="classshark_1_1_abstract_stopping_criterion.html">AbstractStoppingCriterion</a>&lt;<a class="el" href="structshark_1_1_single_objective_result_set.html">SingleObjectiveResultSet</a>&lt;<a class="el" href="classshark_1_1_optimization_trainer.html#a94821f625b14c0a2110f8fe1573e04b2">ParameterVectorType</a>&gt; &gt; <a class="el" href="classshark_1_1_optimization_trainer.html">shark::OptimizationTrainer</a>&lt; Model, LabelTypeT &gt;::StoppingCriterionType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_optimization_trainer_8h_source.html#l00071">71</a> of file <a class="el" href="_optimization_trainer_8h_source.html">OptimizationTrainer.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a3bce482c2ef3c70bbbab4b7c034c294b" name="a3bce482c2ef3c70bbbab4b7c034c294b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3bce482c2ef3c70bbbab4b7c034c294b">&#9670;&#160;</a></span>OptimizationTrainer()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Model , class LabelTypeT  = typename Model::OutputType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_optimization_trainer.html">shark::OptimizationTrainer</a>&lt; Model, LabelTypeT &gt;::OptimizationTrainer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_optimization_trainer.html#aea3cee91bfbb1ab192e7699239b65418">LossType</a> *&#160;</td>
          <td class="paramname"><em>loss</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_optimization_trainer.html#af482502de4631496926f145d630b53af">OptimizerType</a> *&#160;</td>
          <td class="paramname"><em>optimizer</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_optimization_trainer.html#a8a059e6205b464fdfc50cf18f2799163">StoppingCriterionType</a> *&#160;</td>
          <td class="paramname"><em>stoppingCriterion</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_optimization_trainer_8h_source.html#l00073">73</a> of file <a class="el" href="_optimization_trainer_8h_source.html">OptimizationTrainer.h</a>.</p>

<p class="reference">References <a class="el" href="_exception_8h.html#adce1f80097c69010f5eab2618fa2e971">SHARK_RUNTIME_CHECK</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a638833667d4760aa927deb182c3067bd" name="a638833667d4760aa927deb182c3067bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a638833667d4760aa927deb182c3067bd">&#9670;&#160;</a></span>name()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Model , class LabelTypeT  = typename Model::OutputType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string <a class="el" href="classshark_1_1_optimization_trainer.html">shark::OptimizationTrainer</a>&lt; Model, LabelTypeT &gt;::name </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>From <a class="el" href="classshark_1_1_i_nameable.html" title="This class is an interface for all objects which can have a name.">INameable</a>: return the class name. </p>

<p>Reimplemented from <a class="el" href="classshark_1_1_i_nameable.html#a9893f99314de30cd472e649c235d0db4">shark::INameable</a>.</p>

<p class="definition">Definition at line <a class="el" href="_optimization_trainer_8h_source.html#l00085">85</a> of file <a class="el" href="_optimization_trainer_8h_source.html">OptimizationTrainer.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_optimization_trainer.html#afb616dd8695689cafff3d678ba36e4ef">shark::OptimizationTrainer&lt; Model, LabelTypeT &gt;::mep_loss</a>, <a class="el" href="classshark_1_1_optimization_trainer.html#a1f460e07d0acdcd22d14833b3bf0cd16">shark::OptimizationTrainer&lt; Model, LabelTypeT &gt;::mep_optimizer</a>, and <a class="el" href="classshark_1_1_i_nameable.html#a9893f99314de30cd472e649c235d0db4">shark::INameable::name()</a>.</p>

</div>
</div>
<a id="ad449532e71b350608c5893be63d1b3d8" name="ad449532e71b350608c5893be63d1b3d8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad449532e71b350608c5893be63d1b3d8">&#9670;&#160;</a></span>read()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Model , class LabelTypeT  = typename Model::OutputType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_optimization_trainer.html">shark::OptimizationTrainer</a>&lt; Model, LabelTypeT &gt;::read </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceshark.html#ada68729491840669e47c8ad42282424f">InArchive</a> &amp;&#160;</td>
          <td class="paramname"><em>archive</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Read the component from the supplied archive. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">archive</td><td>The archive to read from. </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented from <a class="el" href="classshark_1_1_i_serializable.html#ad4ad9a7c274deff642f91e98417fbc63">shark::ISerializable</a>.</p>

<p class="definition">Definition at line <a class="el" href="_optimization_trainer_8h_source.html#l00104">104</a> of file <a class="el" href="_optimization_trainer_8h_source.html">OptimizationTrainer.h</a>.</p>

</div>
</div>
<a id="ab3cfafba31871515074323c20d501573" name="ab3cfafba31871515074323c20d501573"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab3cfafba31871515074323c20d501573">&#9670;&#160;</a></span>train()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Model , class LabelTypeT  = typename Model::OutputType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_optimization_trainer.html">shark::OptimizationTrainer</a>&lt; Model, LabelTypeT &gt;::train </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_optimization_trainer.html#a49f97f789b60936b63516cfcba72cab8">ModelType</a> &amp;&#160;</td>
          <td class="paramname"><em>model</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_labeled_data.html">LabeledData</a>&lt; <a class="el" href="classshark_1_1_optimization_trainer.html#a6ea1a0177091d87e96112be41b016ed9">InputType</a>, <a class="el" href="classshark_1_1_optimization_trainer.html#a16bba2cc3995eb25d31c0c5c270892d6">LabelType</a> &gt; const &amp;&#160;</td>
          <td class="paramname"><em>dataset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_optimization_trainer_8h_source.html#l00092">92</a> of file <a class="el" href="_optimization_trainer_8h_source.html">OptimizationTrainer.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_error_function.html#a6ba22ddebbfc72a20503c9089e59abe8">shark::ErrorFunction&lt; SearchPointType &gt;::init()</a>, <a class="el" href="classshark_1_1_abstract_single_objective_optimizer.html#a246f1f1d4e0566c9a0ca43035a63fad5">shark::AbstractSingleObjectiveOptimizer&lt; PointType &gt;::init()</a>, <a class="el" href="classshark_1_1_optimization_trainer.html#afb616dd8695689cafff3d678ba36e4ef">shark::OptimizationTrainer&lt; Model, LabelTypeT &gt;::mep_loss</a>, <a class="el" href="classshark_1_1_optimization_trainer.html#a1f460e07d0acdcd22d14833b3bf0cd16">shark::OptimizationTrainer&lt; Model, LabelTypeT &gt;::mep_optimizer</a>, <a class="el" href="classshark_1_1_optimization_trainer.html#a80fc3d270c449461327a702f7d9f223d">shark::OptimizationTrainer&lt; Model, LabelTypeT &gt;::mep_stoppingCriterion</a>, <a class="el" href="structshark_1_1_result_set.html#a5afb306cbdabb9ddb962eb22dbf79bb6">shark::ResultSet&lt; SearchPointT, ResultT &gt;::point</a>, <a class="el" href="classshark_1_1_abstract_stopping_criterion.html#a2cd08d7ec1a7627ad17ce451b8ba915c">shark::AbstractStoppingCriterion&lt; ResultSetT &gt;::reset()</a>, <a class="el" href="classshark_1_1_abstract_single_objective_optimizer.html#a0909596fcc4f80a8d108859b20b64a81">shark::AbstractSingleObjectiveOptimizer&lt; PointType &gt;::solution()</a>, <a class="el" href="classshark_1_1_abstract_optimizer.html#abfc507951eb09c50d62c474c79d773ea">shark::AbstractOptimizer&lt; PointType, ResultT, SolutionTypeT &gt;::step()</a>, and <a class="el" href="classshark_1_1_abstract_stopping_criterion.html#a74a1d1aea141cf2ad5d69e29cb90f25c">shark::AbstractStoppingCriterion&lt; ResultSetT &gt;::stop()</a>.</p>

<p class="reference">Referenced by <a class="el" href="_stopping_criteria_8cpp.html#a2a736d1bd1f2d88ed3d2e382c7307a59">experiment()</a>.</p>

</div>
</div>
<a id="abdc10088c9e637d0008ec1bc52007400" name="abdc10088c9e637d0008ec1bc52007400"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abdc10088c9e637d0008ec1bc52007400">&#9670;&#160;</a></span>write()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Model , class LabelTypeT  = typename Model::OutputType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_optimization_trainer.html">shark::OptimizationTrainer</a>&lt; Model, LabelTypeT &gt;::write </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceshark.html#af4f8eb8e9618f5236b71bbcb12b8a524">OutArchive</a> &amp;&#160;</td>
          <td class="paramname"><em>archive</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Write the component to the supplied archive. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">archive</td><td>The archive to write to. </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented from <a class="el" href="classshark_1_1_i_serializable.html#a9bddedd42933c922e323b73131f62f12">shark::ISerializable</a>.</p>

<p class="definition">Definition at line <a class="el" href="_optimization_trainer_8h_source.html#l00107">107</a> of file <a class="el" href="_optimization_trainer_8h_source.html">OptimizationTrainer.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="afb616dd8695689cafff3d678ba36e4ef" name="afb616dd8695689cafff3d678ba36e4ef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afb616dd8695689cafff3d678ba36e4ef">&#9670;&#160;</a></span>mep_loss</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Model , class LabelTypeT  = typename Model::OutputType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_optimization_trainer.html#aea3cee91bfbb1ab192e7699239b65418">LossType</a>* <a class="el" href="classshark_1_1_optimization_trainer.html">shark::OptimizationTrainer</a>&lt; Model, LabelTypeT &gt;::mep_loss</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_optimization_trainer_8h_source.html#l00111">111</a> of file <a class="el" href="_optimization_trainer_8h_source.html">OptimizationTrainer.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_optimization_trainer.html#a638833667d4760aa927deb182c3067bd">shark::OptimizationTrainer&lt; Model, LabelTypeT &gt;::name()</a>, and <a class="el" href="classshark_1_1_optimization_trainer.html#ab3cfafba31871515074323c20d501573">shark::OptimizationTrainer&lt; Model, LabelTypeT &gt;::train()</a>.</p>

</div>
</div>
<a id="a1f460e07d0acdcd22d14833b3bf0cd16" name="a1f460e07d0acdcd22d14833b3bf0cd16"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1f460e07d0acdcd22d14833b3bf0cd16">&#9670;&#160;</a></span>mep_optimizer</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Model , class LabelTypeT  = typename Model::OutputType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_optimization_trainer.html#af482502de4631496926f145d630b53af">OptimizerType</a>* <a class="el" href="classshark_1_1_optimization_trainer.html">shark::OptimizationTrainer</a>&lt; Model, LabelTypeT &gt;::mep_optimizer</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_optimization_trainer_8h_source.html#l00112">112</a> of file <a class="el" href="_optimization_trainer_8h_source.html">OptimizationTrainer.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_optimization_trainer.html#a638833667d4760aa927deb182c3067bd">shark::OptimizationTrainer&lt; Model, LabelTypeT &gt;::name()</a>, and <a class="el" href="classshark_1_1_optimization_trainer.html#ab3cfafba31871515074323c20d501573">shark::OptimizationTrainer&lt; Model, LabelTypeT &gt;::train()</a>.</p>

</div>
</div>
<a id="a80fc3d270c449461327a702f7d9f223d" name="a80fc3d270c449461327a702f7d9f223d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a80fc3d270c449461327a702f7d9f223d">&#9670;&#160;</a></span>mep_stoppingCriterion</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Model , class LabelTypeT  = typename Model::OutputType&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_optimization_trainer.html#a8a059e6205b464fdfc50cf18f2799163">StoppingCriterionType</a>* <a class="el" href="classshark_1_1_optimization_trainer.html">shark::OptimizationTrainer</a>&lt; Model, LabelTypeT &gt;::mep_stoppingCriterion</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_optimization_trainer_8h_source.html#l00113">113</a> of file <a class="el" href="_optimization_trainer_8h_source.html">OptimizationTrainer.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_optimization_trainer.html#ab3cfafba31871515074323c20d501573">shark::OptimizationTrainer&lt; Model, LabelTypeT &gt;::train()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/shark/Algorithms/Trainers/<a class="el" href="_optimization_trainer_8h_source.html">OptimizationTrainer.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
